export const shake = (app: any) => {
  app.directive("shake", {
    mounted(el: any, binding: any) {
      el.addEventListener("click", () => {
        if (binding.value) {
          el.disabled = true;
          const timer = setTimeout(() => {
            el.disabled = false;
          }, 3000);
        }
      });
    },
  });
};
